<?php

class ModelSetor extends Model {
    
    private $codigo;
    private $nome;
    /** @var ModelFuncionario */
    private $Supervisor;

    public function getCodigo() {
        return $this->codigo;
    }

    public function getNome() {
        return $this->nome;
    }

    public function getSupervisor() {
        if (!$this->Supervisor) {
            $this->setSupervisor(new ModelFuncionario());
        }
        return $this->Supervisor;
    }
    
    public function getCodigoSupervisor() {
        return $this->getSupervisor()->getCodigo();
    }

    public function setCodigo($codigo) {
        $this->codigo = $codigo;
    }

    public function setNome($nome) {
        $this->nome = $nome;
    }

    public function setSupervisor(ModelFuncionario $Supervisor) {
        $this->Supervisor = $Supervisor;
    }
    
    public function setCodigoSupervisor($iCodigoSupervisor) {
        $this->getSupervisor()->setCodigo($iCodigoSupervisor);
    }
    
}
